package websocketgulu.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ApplicationContext;
import websocketgulu.demo.socket.SocketServer;

@SpringBootApplication()
@MapperScan("websocketgulu.demo.dao")
public class DemoApplication {

    public static void main(String[] args) {
        ApplicationContext run = SpringApplication.run(DemoApplication.class, args);
        run.getBean(SocketServer.class).start();
    }
}
